// 服务包的请求api

import { httpDelete, httpGet, httpPost, httpPut } from "../utils/http"

// 获取所有的服务包分类名称
export const getServicePacksgeTypeApi = (data) => {
  return httpGet('/servicePacks/types', data)
}
// 分页查询服务包
export const getServicePackageApi = (data) => {
  return httpPost('/servicePacks/search', data)
}
// 根据一个服务包id获取详情
export const getServiceByIdApi = (data) => {
  return httpGet('/servicePacks/detail', data)
}
// 新增服务包的请求
export const addServicePackageApi = (data) => {
  return httpPost('/servicePacks/add', data)
}
// 修改服务包的请求
export const updateServicePackageApi = (data) => {
  return httpPut('/servicePacks/update', data)
}
// 删除服务包的请求
export const deleteServicePackageApi = (data) => {
  return httpDelete('/servicePacks/remove', data)
}
// 获取机构中的服务包
export const getPackByOrganizationApi = (data) => {
  return httpGet('/servicePacks/getByOrganization', data)
}